package 队列;

public class MyQueueDemo {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
        myQueue.offer(1);
        myQueue.offer(2);
        myQueue.offer(3);

        System.out.println(myQueue);
        int poll = myQueue.poll();
        System.out.println(poll);
        System.out.println(myQueue);
        System.out.println(myQueue.peek());
        System.out.println(myQueue.size());

    }
}
